/* 
 * File:   Sub.h
 * Author: Gab'z
 *
 * Created on 3 juin 2012, 22:39
 */

#ifndef SUB_H
#define	SUB_H

#include "BinaryOperator.h"

namespace calculator {

    class Sub : public BinaryOperator {
        friend class CommandMap;

    public:
        virtual ~Sub();
        
        Sub* clone() const;

        const Number* apply(const Number* n1, const Number* n2) const throw (ArithmeticException);

    private:
        Sub(const std::string name);
        Sub(const Sub& orig);
    };
}

#endif	/* SUB_H */

